<?php
/* @var $this PosicionIvaController */
/* @var $model PosicionIva */

$this->breadcrumbs=array(
	'Posicion Ivas'=>array('index'),
	'Manage',
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#posicion-iva-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo CHtml::link('Busqueda Avanzada','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'posicion-iva-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'descripcion',
		array(
				'name'=>'alicuota',
				'value'=>'100* $data->alicuota ." %"'
				),
		'acrecentamiento',
		'percepcion',
		'baseP',
		'tFactura',
	),
)); ?>
